import axios from 'axios';

const catAPIs = {
  findCategroy(parentId) {
    return axios({
      url: '/categroy/findCategroy',
      method: 'GET',
      params: { parentId },
    });
  },
  findAllCategroy(parentId = 0) {
    return axios({
      url: '/categroy/findAllCategroy',
      method: 'GET',
      params: { parentId },
    });
  },
  addGoods(data) {
    return axios({
      url: '/goods/addGoods',
      method: 'POST',
      data,
    });
  },
};
export default catAPIs;
